package com.filldream.fastboot.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 后台管理员
 * </p>
 *
 * @author RickSun
 * @since 2020-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("system_user")
public class SystemUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 关联ID
     */
    @TableField("link_id")
    private Long linkId;
    /**
     * 账号
     */
    private String account;
    /**
     * 管理员昵称
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 头像
     */
    private String img;
    /**
     * 角色ID
     */
    @TableField("role_id")
    private Long roleId;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "岗位ID")
    private Long postId;

    /**
     * 联系方式
     */
    private String phone;
    /**
     * 备注
     */
    private String memo;
    /**
     * 角色名称，sto字段
     */
    @TableField("role_name")
    private String roleName;
    /**
     * 状态 0-禁用 1-启用
     */
    private Integer status;
    @TableField("is_del")
    private Integer isDel;
    @TableField("create_time")
    private Date createTime;
    @TableField("update_time")
    private Date updateTime;


}
